package com.cykj.v_m_sprintboot.serviceImpl;

import com.cykj.v_m_sprintboot.bean.TbLossApplication;
import com.cykj.v_m_sprintboot.bean.TbOperator;
import com.cykj.v_m_sprintboot.bean.TbReturnApplication;
import com.cykj.v_m_sprintboot.bean.TbSupplier;
import com.cykj.v_m_sprintboot.mapper.ApproveMapper;
import com.cykj.v_m_sprintboot.service.ApproveService;
import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author: wei
 * @date: 2021/9/26 20:20
 */

@Service("approveService")
public class ApproveServiceimpl implements ApproveService {

    @Autowired
    private ApproveMapper approveMapper;

    //    退货审批-----------
    @Override
    public List<TbReturnApplication> findReturnApplication(RowBounds rowBounds) {
        return approveMapper.findReturnApplication(rowBounds);
    }

    @Override
    public int findid() {
        return approveMapper.findid() ;
    }

    @Override
    public boolean changRAstate(Integer id, String applicationState,String remarks) {
        return approveMapper.changRAstate(id,applicationState,remarks);
    }
//退货时间查询
    @Override
    public List<TbReturnApplication> findRAppDate(String startDate, String overDate, RowBounds rowBounds) {
        return approveMapper.findRAppDate(startDate,overDate,rowBounds);
    }


    //耗损-------------
    @Override
    public List<TbLossApplication> findLossApplication(RowBounds rowBounds) {
        return approveMapper.findLossApplication(rowBounds);
    }

    @Override
    public int finLossdid() {
        return approveMapper.finLossdid();
    }

    @Override
    public boolean changLossstate(Integer id, String approveState, String remarks) {
        return approveMapper.changLossstate(id,approveState,remarks);
    }
//耗损时间查询
    @Override
    public List<TbLossApplication> findLossDate(String startDate, String overDate, RowBounds rowBounds) {
        return approveMapper.findLossDate(startDate,overDate,rowBounds);
    }

    //    供应商审批-----------
    @Override
    public List<TbSupplier> findSuppApplication(RowBounds rowBounds) {
        return approveMapper.findSuppApplication(rowBounds);
    }

    @Override
    public int finSuppdid() {
        return approveMapper.finSuppdid();
    }

    @Override
    public boolean changSuppstate(Integer supplierId, String approveState, String remarks) {
        return approveMapper.changSuppstate(supplierId,approveState,remarks);
    }
    //供应商查询
    @Override
    public List<TbSupplier> findSuDate(String startDate, String overDate, RowBounds rowBounds) {
        return approveMapper.findSuDate(startDate,overDate,rowBounds);
    }


    //    运营商审批-----------
    @Override
    public boolean changOAstate(Integer operatorId, String approveState, String remarks) {
        return approveMapper.changOAstate(operatorId,approveState,remarks);
    }
    //运营商查询
    @Override
    public List<TbOperator> findOpData(String startDate, String overDate, RowBounds rowBounds) {
        return approveMapper.findOpData(startDate,overDate,rowBounds);
    }






}
